package com.lzp.wechat.entity.button;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@ApiModel(value = "网页类型菜单实体")
public class ViewButton extends AbstractButton {

    @ApiModelProperty(value = "菜单的响应动作类型", notes = "view表示网页类型")
    private String type;

    @ApiModelProperty(value = "网页链接", notes = "用户点击菜单可打开链接，不超过1024字节")
    private String url;

    public ViewButton(String name, String url) {
        super(name);
        this.type = "view";
        this.url = url;
    }

}
